
class GeomProgression extends Progression {
	
	/** Default constructor setting base 2. */
	GeomProgression() {
		this(2);
	}
	
	/**
	 * Parametric constructor providing the base.
	 * 
	 * @param base base of the progression.
	 */
	GeomProgression(long base) {
		first = base;
		cur = first;
		
		
	}
	
	/**
	 * Advances the progression by multiplying the base with the current value.
	 * 
	 * @return next value of the progression
	 */
	protected long nextValue() {
		cur *= first;
		return cur;
	}
}
